package com.imgrate.migration.repository;

import com.imgrate.migration.entity.MigrationTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MigrationTaskRepository extends JpaRepository<MigrationTask, Long> {
    List<MigrationTask> findByStatus(String status);
    List<MigrationTask> findBySourceServerId(Long serverId);
    List<MigrationTask> findByTargetServerId(Long serverId);
}